import time
from datetime import datetime
import calendar

import pretty

__author__ = 'YOTAM'

def get_current_time():
    d = datetime.utcnow()
    return calendar.timegm(d.utctimetuple())

def to_pretty_date(timestamp):
    return pretty.date(datetime.fromtimestamp(timestamp))